﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SharpSoft.Data
{
    /// <summary>
    /// 外键声明
    /// </summary>
    [System.AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
    public class ForeignKeyAttribute : Attribute
    {
        public ForeignKeyAttribute(Type foreignModelType, string foreignProperty)
        {
            ForeignModelType = foreignModelType;
            ForeignProperty = foreignProperty;
        }
        public Type ForeignModelType { get; set; }

        public string ForeignProperty { get; set; }
    }

}
